package com.example.workbench.common.vo;

import java.io.Serializable;
import java.time.LocalDateTime;


public class BaseResultVo implements Serializable {
    private static final long serialVersionUID = 8485491078405247622L;

    private BaseResultVo() {

    }

    public static BaseResultVo instance() {
        return new BaseResultVo();
    }
    private String message;
    private Boolean success;
    private Integer code;
    private Object data;
    private LocalDateTime time;


    public String getMessage() {
        return message;
    }

    public BaseResultVo setMessage(String message) {
        this.message = message;
        return this;
    }

    public Integer getCode() {
        return code;
    }

    public BaseResultVo setCode(Integer code) {
        this.code = code;
        return this;
    }

    public Object getData() {
        return data;
    }

    public BaseResultVo setData(Object data) {
        this.data = data;
        return this;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public BaseResultVo setTime(LocalDateTime time) {
        this.time = time;
        return this;
    }

    public Boolean getSuccess() {
        return success;
    }

    public BaseResultVo setSuccess(Boolean success) {
        this.success = success;
        return this;
    }
}
